#include <iostream>
using namespace std;

struct student
{
	char name[10];
	int age;
};
int main()
{
	struct student stu={"张三",18};
	
	//以前写法：C语言风格的强转
	//char *p=(char *)&stu;
	
	//C++提供的强转
	char *p=reinterpret_cast<char *>(&stu);
	
}